package controller

import (
	"github.com/gin-gonic/gin"
	contrl "poem-server/mvc/controller/impl"
)

type UserController interface {
	LoginByPhone(ctx *gin.Context)
	LoginByUserName(ctx *gin.Context)
	RegisterByPhone(ctx *gin.Context)
	RegisterByUserName(ctx *gin.Context)
	UpdateInfo(ctx *gin.Context)
	GetInfo(ctx *gin.Context)
	SendCode(ctx *gin.Context)
	Logout(ctx *gin.Context)
}

func NewUserController() UserController {
	return contrl.NewUserControllerImpl()
}
